package p270jp.pxv.android.viewholder;

import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import p189gn.AbstractC3446l;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p314lg.ViewHolderLiveGiftInfoOverlayItemBinding;
import p325m0.MutabilityOwnership;
import p370ni.InfoType;
import p374nm.View$OnClickListenerC5408p0;
import p603wm.Unit;
import p652yj.C7346b;

/* compiled from: LiveGiftInfoOverlayViewHolder.kt */
/* renamed from: jp.pxv.android.viewholder.LiveGiftInfoOverlayViewHolder */
/* loaded from: classes2.dex */
public final class LiveGiftInfoOverlayViewHolder extends RecyclerView.AbstractC0819y {
    private final ViewHolderLiveGiftInfoOverlayItemBinding binding;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: LiveGiftInfoOverlayViewHolder.kt */
    /* renamed from: jp.pxv.android.viewholder.LiveGiftInfoOverlayViewHolder$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final LiveGiftInfoOverlayViewHolder createViewHolder(ViewGroup viewGroup) {
            ViewHolderLiveGiftInfoOverlayItemBinding y6Var = (ViewHolderLiveGiftInfoOverlayItemBinding) C7346b.m327a(viewGroup, "parent", R.layout.view_holder_live_gift_info_overlay_item, viewGroup, false);
            MutabilityOwnership.m3746l(y6Var, "binding");
            return new LiveGiftInfoOverlayViewHolder(y6Var, null);
        }
    }

    private LiveGiftInfoOverlayViewHolder(ViewHolderLiveGiftInfoOverlayItemBinding y6Var) {
        super(y6Var.f2666e);
        this.binding = y6Var;
    }

    public /* synthetic */ LiveGiftInfoOverlayViewHolder(ViewHolderLiveGiftInfoOverlayItemBinding y6Var, DefaultConstructorMarker eVar) {
        this(y6Var);
    }

    /* renamed from: a */
    public static /* synthetic */ void m4425a(AbstractC3446l lVar, View view) {
        m12322onBindViewHolder$lambda0(lVar, view);
    }

    /* renamed from: onBindViewHolder$lambda-0 */
    public static final void m12322onBindViewHolder$lambda0(AbstractC3446l lVar, View view) {
        lVar.invoke(view);
    }

    public final void onBindViewHolder(InfoType bVar, AbstractC3446l<? super View, Unit> lVar) {
        MutabilityOwnership.m3745m(bVar, "infoType");
        this.binding.f22503q.m4595d(bVar, lVar == null ? null : new View$OnClickListenerC5408p0(lVar, 1));
        this.binding.m11392i();
    }
}
